package com.xyy.saas.payment.util;

import com.alibaba.dubbo.config.ReferenceConfig;

/**
 * @author wangtianqi
 * @date 2020/4/26 11:15
 */
public class ProxyInvokeUtil<T> {

    public static <T>T ProxyInvokeUtil(Class<?> interfaceClass, String version, String group) {
        ReferenceConfig<T> referenceConfig = new ReferenceConfig<>();
        referenceConfig.setVersion(version);
        referenceConfig.setGroup(group);
        referenceConfig.setInterface(interfaceClass);
        return referenceConfig.get();
    }
}
